'''Contains the layout for the HP Blue Carpet Claim creator'''
import PySimpleGUI as sg

sg.theme('Reddit')

LABEL_SIZE = (12, 1)
INPUT_SIZE = (20, 1)

LAYOUT = [
    [
        sg.Text('Invoice Path', size=LABEL_SIZE),
        sg.Input(key='-INVOICE_PATH-', enable_events=True),
        sg.FileBrowse()
    ],
    [
        sg.Text('Invoice Date', size=LABEL_SIZE),
        sg.InputText(key='-DATE-', size=INPUT_SIZE),
    ],
    [
        sg.Text('Invoice Number', size=LABEL_SIZE),
        sg.InputText(key='-INVOICE_NUM-', size=INPUT_SIZE),
    ],
    [
        sg.Text('PO Number', size=LABEL_SIZE),
        sg.InputText(key='-PO-', size=INPUT_SIZE),
    ],
    [
        sg.Text('Product Number', size=LABEL_SIZE),
        sg.InputText(key='-PN-', size=INPUT_SIZE),
    ],
    [
        sg.Text('Device Quantity', size=LABEL_SIZE),
        sg.InputText(key='-QUANTITY-', size=INPUT_SIZE),
    ],
    [
        sg.Text('Serial Path', size=LABEL_SIZE),
        sg.Input(key='-SERIAL_PATH-'),
        sg.FileBrowse()
    ],
    # To create a new claim, or close the program
    [
        sg.Button(
            'Create Claim', button_color=('white', '#008000'),
        ),
        sg.Button(
            'Get Serials from Invoice',
            button_color=('black', '#ffa500'),
            tooltip='Gets the serial numbers directly from the invoice'
        ),
        sg.Cancel( button_color=('black', '#ff4040') )
    ]
]
